<% entry.genres.each do |genre| %>

  <div class="genre-list-data">

    <strong><%= link_to genre.name, genre %></strong>

      <% if entry.class.to_s == 'Artist' %>
        <%= link_to '&nbsp; x', 
            artist_genre_link_path(entry, :genre_id => genre.id), 
            :method => :delete %>
      <% elsif entry.class.to_s == 'Edition' %>
        <%= link_to '&nbsp; x', 
            edition_genre_link_path(entry, :genre_id => genre.id),
            :method => :delete %>
      <% elsif entry.class.to_s == 'Song' %>
        <%= link_to '&nbsp; x',
            song_genre_link_path(entry, :genre_id => genre.id), 
            :method => :delete %>
      <% end %>
  </div>
<% end %>


  <div id="genre-list-add">
    <% if entry.class.to_s == 'Artist' %>
      <%= link_to 'Add Genre', new_artist_genre_link_path(entry), :class => 'lightwindow', 
		  														  :params =>   'lightwindow_type=page,lightwindow_height=400,lightwindow_width=400' %>
	<% elsif entry.class.to_s == 'Edition' %>
	  <%= link_to 'Add Genre', new_edition_genre_link_path(entry), :class => 'lightwindow', 
		  														   :params =>   'lightwindow_type=page,lightwindow_height=400,lightwindow_width=400' %>
	<% elsif entry.class.to_s == 'Song' %>
	  <%= link_to 'Add Genre', new_song_genre_link_path(entry), :class => 'lightwindow', 
		  														:params =>   'lightwindow_type=page,lightwindow_height=400,lightwindow_width=400' %>
	<% end %>
  </div>
